﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="nueva.aspx.cs" Inherits="Default2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <li><a href="home.aspx">Inicio</a></li>
    <li><a href="michiquiniela.aspx">Mi Chiquiniela</a></li>
    <li><a href="actual.aspx">Chiquiniela de la jornada</a></li>
    <li class="current"><a href="nueva.aspx">Nueva Chiquiniela</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
<h1>Nueva Chiquiniela</h1>
<table>
<tr>
<td>
<h2>Jornada: &nbsp</h2>
</td>
<td>
 <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="SqlDataSource1" DataTextField="Column1" DataValueField="id">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:quinielonConnectionString %>" SelectCommand="GET_JORNADAS_FECHA" 
        SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</td>
</tr>
</table>
<h2>Equipos</h2>

<div class="centro">
<table id="otraTabla">
<tr>
<th>
Nº
</th>
<th>
Local
</th>
<th>
Visitante
</th>
</tr>
<tr>
<td>
1
</td>
<td>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    ErrorMessage="*" ControlToValidate="TextBox1" 
        Display="Dynamic" CssClass="errorValidation"></asp:RequiredFieldValidator>
    <asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox1" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="TextBox2" Display="Static" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox2" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
2
</td>
<td>
    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="TextBox3" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox3" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="TextBox4" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender3" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox4" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
3
</td>
<td>
    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="TextBox5" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender4" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox5" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ControlToValidate="TextBox6" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender5" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox6" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
4
</td>
<td>
    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*" ControlToValidate="TextBox7" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender6" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox7" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="*" ControlToValidate="TextBox8" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender7" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox8" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
5
</td>
<td>
    <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="*" ControlToValidate="TextBox9" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender8" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox9" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="*" ControlToValidate="TextBox10" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender9" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox10" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
6
</td>
<td>
    <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="*" ControlToValidate="TextBox11" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender10" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox11" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="*" ControlToValidate="TextBox12" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender11" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox12" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
7
</td>
<td>
    <asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="*" ControlToValidate="TextBox13" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender12" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox13" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="*" ControlToValidate="TextBox14" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender13" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox14" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
8
</td>
<td>
    <asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ErrorMessage="*" ControlToValidate="TextBox15" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender14" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox15" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="*" ControlToValidate="TextBox16" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender15" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox16" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
9
</td>
<td>
    <asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ErrorMessage="*" ControlToValidate="TextBox17" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender16" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox17" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox18" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ErrorMessage="*" ControlToValidate="TextBox18" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender17" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox18" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
10
</td>
<td>
    <asp:TextBox ID="TextBox19" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ErrorMessage="*" ControlToValidate="TextBox19" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender18" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox19" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox20" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ErrorMessage="*" ControlToValidate="TextBox20" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender19" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox20" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
11
</td>
<td>
    <asp:TextBox ID="TextBox21" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ErrorMessage="*" ControlToValidate="TextBox21" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender20" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox21" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox22" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ErrorMessage="*" ControlToValidate="TextBox22" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender21" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox22" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
12
</td>
<td>
    <asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ErrorMessage="*" ControlToValidate="TextBox23" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender22" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox23" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox24" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ErrorMessage="*" ControlToValidate="TextBox24" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender23" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox24" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
13
</td>
<td>
    <asp:TextBox ID="TextBox25" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ErrorMessage="*" ControlToValidate="TextBox25" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender24" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox25" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox26" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ErrorMessage="*" ControlToValidate="TextBox26" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender25" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox26" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
14
</td>
<td>
    <asp:TextBox ID="TextBox27" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ErrorMessage="*" ControlToValidate="TextBox27" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender26" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox27" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox28" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ErrorMessage="*" ControlToValidate="TextBox28" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender27" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox28" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
<tr>
<td>
15
</td>
<td>
    <asp:TextBox ID="TextBox29" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ErrorMessage="*" ControlToValidate="TextBox29" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender28" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox29" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
<td>
<asp:TextBox ID="TextBox30" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator30" runat="server" ErrorMessage="*" ControlToValidate="TextBox30" CssClass="errorValidation"></asp:RequiredFieldValidator>

    <asp:AutoCompleteExtender ID="AutoCompleteExtender29" runat="server" 
        Enabled="True" ServiceMethod="GetCompletionList" 
        ServicePath="" TargetControlID="TextBox30" UseContextKey="True"
        MinimumPrefixLength="2" 
        CompletionInterval="0"
        CompletionSetCount="5" 
        DelimiterCharacters="">
    </asp:AutoCompleteExtender>
</td>
</tr>
</table>
</div>
<br/>
<div style="text-align: center">
<asp:Button ID="Button1" runat="server" Text="Aceptar - crear nueva chiquiniela" 
        onclick="Button1_Click" CssClass="botonGrande" 
        PostBackUrl="nuevaSuccess.aspx" ToolTip="Se creará una nueva chiquiniela y se notificará a los miembros para que la rellenen" />
    <asp:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server" 
        
        ConfirmText="Se creará una nueva chiquiniela para rellenar en la jornada indicada. ¿Continuar?" 
        Enabled="True" TargetControlID="Button1" ConfirmOnFormSubmit="True">
    </asp:ConfirmButtonExtender>
</div>
<br/>
<p>* Recuerda que para poder crear una quiniela nueva es necesario poner los resultados de la actual. Puedes hacerlo en <a href="resultados.aspx"> Resultados</a></p>



   
</asp:Content>

